﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CMP.ERP.DAL;
using CMP.ERP.Model;
using System.Data;

namespace CMP.ERP.BLL
{
    public class WareHoseBLL
    {
        WareHoseDAL dal = new WareHoseDAL();
        /// <summary>
        /// 显示仓库信息
        /// </summary>
        /// <returns></returns>
        public DataTable WareHoseShow()
        {
            return dal.WareHoseShow();
        }
        /// <summary>
        /// 添加仓库信息
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        public int AddWareHose(WareHose e)
        {
            return dal.AddWareHose(e);
        }
        /// <summary>
        /// 根据仓库编码删除仓库信息
        /// </summary>
        /// <param name="Express_Company_Id">仓库编码</param>
        /// <returns></returns>
        public int DelWareHose(int WareHose_Id)
        {
            return dal.DelWareHose(WareHose_Id);
        }
        /// <summary>
        /// 根据仓库编码查询仓库信息
        /// </summary>
        /// <param name="Express_Company_Id">仓库编码</param>
        /// <returns></returns>
        public DataTable GetWareHose(int WareHose_Id)
        {
            return dal.GetWareHose(WareHose_Id);
        }
        /// <summary>
        /// 修改仓库信息
        /// </summary>
        /// <param name="e"></param>
        /// <returns></returns>
        public int UpdWareHose(WareHose e)
        {
            return dal.UpdWareHose(e);
        }
        /// <summary>
        /// 根据仓库名称查询信息
        /// </summary>
        /// <param name="Express_Company_Name">仓库名称</param>
        /// <returns></returns>
        public DataTable SelWareHose(string WareHose_Name)
        {
            return dal.SelWareHose(WareHose_Name);
        }
    }
}

